<!DOCTYPE html>  
<html>  
  <head>  
    <title>Date</title>  
  </head>
  <body>  
    <script type="text/javascript">
       var today=new Date();
       document.write(today+"<br>");
       
       var day=today.getDate();  
       var month=today.getMonth()+1;
       var year=today.getFullYear();
       var h=today.getHours();  
       var m=today.getMinutes();  
       var s=today.getSeconds();  
       document.write(year+"-"+month+"-"+day+" "+h+":"+m+":"+s+"<br>"); 
       
       var date1=new Date("2023-01-01");
       document.write(date1+"<br>");
       var date2=new Date(2023,02,02,10,35,29,888);
       document.write(date2+"<br>");
       var date3=new Date(1681867854431);
       document.write(date3+"<br>");
    </script> 
  </body>  
</html>